package adapterPattern;

//适配Logger和DatabaseLogger类：适配器类
public class Adapter implements Logger {
    private DatabaseLogger databaseLogger;

    public Adapter(DatabaseLogger databaseLogger) {
        this.databaseLogger = databaseLogger;
    }

    public void log(String message) {
        databaseLogger.log(message);
    }

}
